<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="page-sidebar">
    <div class="sidebar-menugroup">
        <div class="sidebar-grouptitle">个人中心</div>
        <ul class="sidebar-menu">
            <li class="sidebar-menuitem"><a href="${pageContext.request.contextPath}/myMeeting">最新通知</a></li>
            <li class="sidebar-menuitem active"><a href="${pageContext.request.contextPath}/findallmeetings">我的预定</a></li>
        </ul>
    </div>
    <div class="sidebar-menugroup">
        <div class="sidebar-grouptitle">人员管理</div>
        <ul class="sidebar-menu">
            <li class="sidebar-menuitem"><a href="${pageContext.request.contextPath}/register">员工注册</a></li>
            <%--            <#if currentUser?? && (currentUser.role == 2)>--%>
            <c:if test="${curUser ne null and curUser.role eq 2}">
                <li class="sidebar-menuitem"><a href="${pageContext.request.contextPath}/department">部门管理</a></li>
                <li class="sidebar-menuitem"><a href="${pageContext.request.contextPath}/findStatus">注册审批</a></li>
                <li class="sidebar-menuitem"><a
                        href="${pageContext.request.contextPath}/searchemployee?status=1">搜索员工</a>
                </li>
                <%--        </#if>--%></c:if>
        </ul>
    </div>
    <div class="sidebar-menugroup">
        <div class="sidebar-grouptitle">会议预定</div>
        <ul class="sidebar-menu">
            <c:if test="${curUser ne null and curUser.role eq 2}">
                <li class="sidebar-menuitem"><a href="/addmeetingroom">添加会议室</a></li>
            </c:if>
            <%--            <#if currentUser?? && (currentUser.role == 2)>--%>
            <%--            <li class="sidebar-menuitem"><a href="/admin/addmeetingroom">添加会议室</a></li>--%>
            <%--        </#if>--%>
            <li class="sidebar-menuitem"><a href="${pageContext.request.contextPath}/meetingroom">查看会议室</a></li>
            <lti class="sidebar-menuitem"><a href="${pageContext.request.contextPath}/bookmeeting">预定会议</a></lti>
            <li class="sidebar-menuitem"><a href="${pageContext.request.contextPath}/searchmeetings">搜索会议</a></li>
        </ul>
    </div>
</div>